/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tdmq.v20200217.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ExportRocketMQMessageDetailResponse extends AbstractModel {

    /**
    * Message ID
    */
    @SerializedName("MsgId")
    @Expose
    private String MsgId;

    /**
    * Message Generation Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("BornTimestamp")
    @Expose
    private Long BornTimestamp;

    /**
    * Message Storage Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("StoreTimestamp")
    @Expose
    private Long StoreTimestamp;

    /**
    * Message Production Client Address
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("BornHost")
    @Expose
    private String BornHost;

    /**
    * Message Tag
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("MsgTag")
    @Expose
    private String MsgTag;

    /**
    * Message key
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("MsgKey")
    @Expose
    private String MsgKey;

    /**
    * Message Attributes
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("Properties")
    @Expose
    private String Properties;

    /**
    * Message Retry Count
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("ReConsumeTimes")
    @Expose
    private Long ReConsumeTimes;

    /**
    * Base64 Encoded String
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("MsgBody")
    @Expose
    private String MsgBody;

    /**
    * CRC32 Code of Message Content
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("MsgBodyCRC")
    @Expose
    private Long MsgBodyCRC;

    /**
    * Specifies the message body size (unit K).
Does not return messages when above 2048.
    */
    @SerializedName("MsgBodySize")
    @Expose
    private Long MsgBodySize;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Message ID 
     * @return MsgId Message ID
     */
    public String getMsgId() {
        return this.MsgId;
    }

    /**
     * Set Message ID
     * @param MsgId Message ID
     */
    public void setMsgId(String MsgId) {
        this.MsgId = MsgId;
    }

    /**
     * Get Message Generation Timestamp
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return BornTimestamp Message Generation Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Long getBornTimestamp() {
        return this.BornTimestamp;
    }

    /**
     * Set Message Generation Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
     * @param BornTimestamp Message Generation Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setBornTimestamp(Long BornTimestamp) {
        this.BornTimestamp = BornTimestamp;
    }

    /**
     * Get Message Storage Timestamp
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return StoreTimestamp Message Storage Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Long getStoreTimestamp() {
        return this.StoreTimestamp;
    }

    /**
     * Set Message Storage Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
     * @param StoreTimestamp Message Storage Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setStoreTimestamp(Long StoreTimestamp) {
        this.StoreTimestamp = StoreTimestamp;
    }

    /**
     * Get Message Production Client Address
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return BornHost Message Production Client Address
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getBornHost() {
        return this.BornHost;
    }

    /**
     * Set Message Production Client Address
Note: This field may return null, indicating that no valid values can be obtained.
     * @param BornHost Message Production Client Address
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setBornHost(String BornHost) {
        this.BornHost = BornHost;
    }

    /**
     * Get Message Tag
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return MsgTag Message Tag
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getMsgTag() {
        return this.MsgTag;
    }

    /**
     * Set Message Tag
Note: This field may return null, indicating that no valid values can be obtained.
     * @param MsgTag Message Tag
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setMsgTag(String MsgTag) {
        this.MsgTag = MsgTag;
    }

    /**
     * Get Message key
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return MsgKey Message key
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getMsgKey() {
        return this.MsgKey;
    }

    /**
     * Set Message key
Note: This field may return null, indicating that no valid values can be obtained.
     * @param MsgKey Message key
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setMsgKey(String MsgKey) {
        this.MsgKey = MsgKey;
    }

    /**
     * Get Message Attributes
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return Properties Message Attributes
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getProperties() {
        return this.Properties;
    }

    /**
     * Set Message Attributes
Note: This field may return null, indicating that no valid values can be obtained.
     * @param Properties Message Attributes
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setProperties(String Properties) {
        this.Properties = Properties;
    }

    /**
     * Get Message Retry Count
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return ReConsumeTimes Message Retry Count
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Long getReConsumeTimes() {
        return this.ReConsumeTimes;
    }

    /**
     * Set Message Retry Count
Note: This field may return null, indicating that no valid values can be obtained.
     * @param ReConsumeTimes Message Retry Count
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setReConsumeTimes(Long ReConsumeTimes) {
        this.ReConsumeTimes = ReConsumeTimes;
    }

    /**
     * Get Base64 Encoded String
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return MsgBody Base64 Encoded String
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getMsgBody() {
        return this.MsgBody;
    }

    /**
     * Set Base64 Encoded String
Note: This field may return null, indicating that no valid values can be obtained.
     * @param MsgBody Base64 Encoded String
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setMsgBody(String MsgBody) {
        this.MsgBody = MsgBody;
    }

    /**
     * Get CRC32 Code of Message Content
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return MsgBodyCRC CRC32 Code of Message Content
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Long getMsgBodyCRC() {
        return this.MsgBodyCRC;
    }

    /**
     * Set CRC32 Code of Message Content
Note: This field may return null, indicating that no valid values can be obtained.
     * @param MsgBodyCRC CRC32 Code of Message Content
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setMsgBodyCRC(Long MsgBodyCRC) {
        this.MsgBodyCRC = MsgBodyCRC;
    }

    /**
     * Get Specifies the message body size (unit K).
Does not return messages when above 2048. 
     * @return MsgBodySize Specifies the message body size (unit K).
Does not return messages when above 2048.
     */
    public Long getMsgBodySize() {
        return this.MsgBodySize;
    }

    /**
     * Set Specifies the message body size (unit K).
Does not return messages when above 2048.
     * @param MsgBodySize Specifies the message body size (unit K).
Does not return messages when above 2048.
     */
    public void setMsgBodySize(Long MsgBodySize) {
        this.MsgBodySize = MsgBodySize;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public ExportRocketMQMessageDetailResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public ExportRocketMQMessageDetailResponse(ExportRocketMQMessageDetailResponse source) {
        if (source.MsgId != null) {
            this.MsgId = new String(source.MsgId);
        }
        if (source.BornTimestamp != null) {
            this.BornTimestamp = new Long(source.BornTimestamp);
        }
        if (source.StoreTimestamp != null) {
            this.StoreTimestamp = new Long(source.StoreTimestamp);
        }
        if (source.BornHost != null) {
            this.BornHost = new String(source.BornHost);
        }
        if (source.MsgTag != null) {
            this.MsgTag = new String(source.MsgTag);
        }
        if (source.MsgKey != null) {
            this.MsgKey = new String(source.MsgKey);
        }
        if (source.Properties != null) {
            this.Properties = new String(source.Properties);
        }
        if (source.ReConsumeTimes != null) {
            this.ReConsumeTimes = new Long(source.ReConsumeTimes);
        }
        if (source.MsgBody != null) {
            this.MsgBody = new String(source.MsgBody);
        }
        if (source.MsgBodyCRC != null) {
            this.MsgBodyCRC = new Long(source.MsgBodyCRC);
        }
        if (source.MsgBodySize != null) {
            this.MsgBodySize = new Long(source.MsgBodySize);
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "MsgId", this.MsgId);
        this.setParamSimple(map, prefix + "BornTimestamp", this.BornTimestamp);
        this.setParamSimple(map, prefix + "StoreTimestamp", this.StoreTimestamp);
        this.setParamSimple(map, prefix + "BornHost", this.BornHost);
        this.setParamSimple(map, prefix + "MsgTag", this.MsgTag);
        this.setParamSimple(map, prefix + "MsgKey", this.MsgKey);
        this.setParamSimple(map, prefix + "Properties", this.Properties);
        this.setParamSimple(map, prefix + "ReConsumeTimes", this.ReConsumeTimes);
        this.setParamSimple(map, prefix + "MsgBody", this.MsgBody);
        this.setParamSimple(map, prefix + "MsgBodyCRC", this.MsgBodyCRC);
        this.setParamSimple(map, prefix + "MsgBodySize", this.MsgBodySize);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

